import Vue from 'vue'
import Router from 'vue-router'
import recommend from 'components/recommend/recommend'
import search from 'components/search/search'
import singer from 'components/singer/singer'
import rank from 'components/rank/rank'
import tab from 'components/tab/tab'
import singerDetail from 'components/singer-detail/singer-detail'
Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    redirect: 'recommend'
  },
  {
    path: '/recommend',
    component: recommend
  }, {
    path: '/search',
    component: search
  }, {
    path: '/singer',
    component: singer,
    children: [{
      path: ':id',
      component: singerDetail
    }]
  }, {
    path: '/rank',
    component: rank
  }, {
    path: '/tab',
    component: tab
  }
  ]
})
